import 'package:ecy_app_flutter/routes/consignment/model/ShopVo.dart';
import 'package:json_annotation/json_annotation.dart';

import 'CommoditySku.dart';
import 'UserAddress.dart';
import 'UserOrder.dart';
import 'UserOrderItem.dart';
import 'UserOrderPay.dart';

part 'UserOrderDetail.g.dart';

@JsonSerializable()
class UserOrderDetail {
  UserOrderDetail();

  UserOrder? order;
  UserOrderPay? orderPay;
  List<UserOrderItem>? orderItems;
  UserAddress? userAddress;
  List<CommoditySku>? commoditySkuList;
  Map<String, dynamic>? groupBuyIdMap;
  ShopVo? shopVo;

  factory UserOrderDetail.fromJson(Map<String,dynamic> json) => _$UserOrderDetailFromJson(json);
  Map<String, dynamic> toJson() => _$UserOrderDetailToJson(this);
}
